package com.deyuanyun.pic.insp.service.inspresult.impl;

import com.deyuanyun.pic.common.tool.JXL;
import com.deyuanyun.pic.insp.mapper.TaskPointMapper;
import com.deyuanyun.pic.insp.service.inspresult.TaskPointService;


import com.github.pagehelper.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;

@Service
public class TaskPointServiceImpl implements TaskPointService {
    @Resource
    private TaskPointMapper pigtaskpointmapper;
    
    @Override
    public Page<HashMap<String, Object>> getinsptaskPoint(HashMap<String, Object> map) {
        return pigtaskpointmapper.getinsptaskPoint(map);
    }

    @Override
    public List  queryExport(HashMap<String, Object> map) {

        List<LinkedHashMap<String,Object>> data=  pigtaskpointmapper.queryExport(map);
        int i=1;
        for(LinkedHashMap m:data){
            m.remove("IDDS");
            m.put("C3",i);
            i++;
        }

        return data;
    }

}
